package com.upcode.weighing.vo.req.app;

import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @author liuxinghong
 * @Description: 更换手机号
 * @date 2018/5/17/01714:59
 */
public class MobileVo implements Serializable {

    @NotNull(message = "需要更改的手机号码不能为空！")
    @Length(min = 11,max = 11)
    private String newMobileNo; //新手机号

    @Length(max = 6,message = "验证码长度应是6位")
    @NotNull(message = "短信验证码不能为空！")
    private String smsCode;//短信验证码

    public String getNewMobileNo() {
        return newMobileNo;
    }

    public void setNewMobileNo(String newMobileNo) {
        this.newMobileNo = newMobileNo;
    }

    public String getSmsCode() {
        return smsCode;
    }

    public void setSmsCode(String smsCode) {
        this.smsCode = smsCode;
    }
}
